<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Generate QR Code</h1>
同心汇点击扫码登录：<button onclick="generateQRCode('tomcat')">Generate for Tomcat</button>
寿乡月嫂点击扫码登录：<button onclick="generateQRCode('tongxinhui')">Generate for Tongxinhui</button>
<br><br>
<img id="qrcode" alt="QR Code" style="display:none;">

<script>
    function generateQRCode(containerId) {
        const imgElement = document.getElementById('qrcode');
        imgElement.src = `/docker/api/qr-code?containerId=${containerId}`;
        imgElement.style.display = 'block';
    }
</script>
</body>
</html>